package com.cn.data.bean;

import com.cn.data.jpa.domain.Logon;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * @Author: chenl
 * @Date: 2019/6/1 9:11
 */
public class BeanFactoryTest {

    public static void main(String[] args) {
        ApplicationContext context = new FileSystemXmlApplicationContext("F:\\myProjects\\webdemo\\spring-boot-sample-data-jpa\\src\\main\\java\\com\\cn\\data\\bean\\beans.xml");
        Logon logon = (Logon) context.getBean("logon");
        System.out.println(logon.toString());
    }
}
